<a href="<?php echo Configure::read('base_url');?>" class="logo"></a>
<div class="topcon">
    <div style="padding-top:14px"><form method="post" id="searchfrm" action="<?php echo Configure::read('base_url')."products/search_result"; ?>">
<div class="topnav-01">   
     <input type="text" size="36"  id="serchkey" name="serchkey" class="srequired"
    title="Enter keywords or item number" value="Enter keywords or item number"
    onfocus="if(this.value=='Enter keywords or item number'){this.value=''}"
    onblur="if(this.value==''){this.value='Enter keywords or item number'}" />    
</div>
	<div class="topnav-02">
		<select name="cat_id">
  <option value="">All Categories</option>
  <?php echo $this->requestAction('/manage_category/category_tree/');?>
</select>
	</div>
	<div class="topnav-03">
		<input type="image" src="<?php echo $this->webroot; ?>img/btnsrc.jpg" style="height:24px" />
	</div>
    </form>
        </div>
	<div class="topnav-04">
		&nbsp;&nbsp;&nbsp;<a href="<?php echo Configure::read('base_url');?>products/advance_search" title="Advanced Search">Advanced Search</a>
	</div>	
	<div class="topnav-06" style=" font-weight: bold; padding: 0 0 0 0; position: absolute;right: 23px;top: 6px; width: auto;">
	<?php if($session->read('Auth.User.id')==null){?>
            <a href="javascript:void(0);" controller="users" action="popup_login" title="login"  onclick='showPop(this)'>Login</a>
		&nbsp;|&nbsp;<a href="javascript:void(0);" controller="users" action="register" title="Registration" onclick='showPop(this)'>Registration</a>
	<?php }else{
		echo'<a href='.Configure::read('base_url').'users/my_information>Welcome&nbsp;&nbsp;'; echo $session->read('Auth.User.username').'!</a>';?>&nbsp;|&nbsp;<a href="<?php echo Configure::read('base_url');?>messages">You have
                    <span style="font-weight: bold; color: SpringGreen; font-size: 12px;">
                <?php $tnewmessges = $this->requestAction('/messages/totalnewmessage'); echo $tnewmessges;  ?>
                        </span>
                        new messages.</a>&nbsp;|<?php echo'&nbsp;&nbsp;&nbsp;<a href="'.Configure::read('base_url').'users/logout">Logout</a>';
		}	?>
                        &nbsp;|&nbsp;<a href="<?php echo Configure::read('base_url');?>carts/view_cart">View Cart</a>
                        &nbsp;|&nbsp;<a href="<?php echo Configure::read('base_url');?>helps">Help</a>
	</div>
</div>
<div class="nav"><ul><li><a href="<?php echo Configure::read('base_url');?>products/add">SELL</a></li>
        <li>
            <a href="<?php echo Configure::read('base_url');if($session->read('Auth.User.group_id')==7){ ?>carts/view_cart<?php }else{ ?>products<?php } ?>" title="MY ACCOUNT">MY ACCOUNT</a>
        </li>
 <li><a href="<?php echo Configure::read('base_url');?>blogs" title="BLOG">BLOG</a></li><li><a href="<?php echo Configure::read('base_url');?>helps" title="HELP">HELP</a></li></ul></div>